<template>
    <div class="box-common">
        <div class="box-body">
            <div class="box-value">确认营业收入(权责)(元)</div>
            <div class="box-name">{{operationData.confirModelIncome}}</div>
        </div>
        <div class="box-body">
            <div class="box-value">合作业务数量</div>
            <div class="box-name">{{operationData.cooperBusNum}}</div>
        </div>
        <div class="box-body">
            <div class="box-value">合作企业数量</div>
            <div class="box-name">{{operationData.cooperComNum}}</div>
        </div>
    </div>
</template>

<script>
import { getParkLotAndModeDataVo } from '@/api/DashBoardApi';
export default {
    data() {
        return {
            operationData: {}
        };
    },
    mounted() {
        this.getManageData({});
    },
    methods: {
        getManageData(parms) {
            this.loading = true;
            getParkLotAndModeDataVo(parms)
                .then((res) => {
                    if (res && res.obj) {
                        this.operationData = res.obj;
                    }
                })
                .catch((error) => {
                    console.error(error);
                });
            setTimeout(() => {
                this.loading = false;
            }, 1200);
        }
    }
};
</script>

<style lang="scss" scoped>
.box-common {
    position: relative;
    display: flex;
    align-items: center;
    padding: 36px 0 40px 0;
    background: url('/static/icon/icon_bg_04.png') no-repeat;
    background-size: 140px 140px;
    background-position: right -12px;
    .box-body {
        position: relative;
        width: 100%;
        .box-value {
            position: relative;
            color: #1d252f;
            font-size: 14px;
            font-weight: 500;
            line-height: 20px;
        }
        .box-name {
            position: relative;
            color: #1d2129;
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
        }
    }
}
</style>
